//
//  BaseViewController.m
//  ShanghaiShopping
//
//  Created by KDC on 2019/8/22.
//  Copyright © 2019 KDC. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    
    if ([self.navigationController.viewControllers indexOfObject:self] == NSNotFound) {
        
    }
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
//    self.navigationController.navigationBar.barStyle = UIStatusBarStyleDefault;//状态栏白色
//    [self.navigationController.navigationBar setTintColor:[UIColor blackColor]];//返回尖头设置黑色
//    self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:nil style:self.navigationItem.backBarButtonItem.style target:nil action:nil];//去除系统导航栏文字“返回”
}

- (void)backAction {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)setNav {
    self.navigationItem.hidesBackButton = YES;
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:ImageNamed(@"enter") style:UIBarButtonItemStyleDone target:self action:@selector(backAction)];
    self.navigationItem.leftItemsSupplementBackButton = YES;
}

@end
